import React,{Component} from 'react';
import {Row} from 'antd';

import './TablePanel.less';

class TablePanel extends Component{
    constructor(props){
        super(props);
        this.state={
            title:this.props.title
        };
    }

    render() {
        const {title}=this.state;
        return(
            <Row className={'tablePanel'}>
                <Row className={'tablePanelTitle'}>{title}</Row>
                {
                    this.props.children
                }
            </Row>
        )
    }
}

export default TablePanel;
